/*
 * ParamCallable.java
 *
 * Created on 3 de mayo de 2007, 14:44
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package bd;

import util.Utiles;

/**
 *
 * @author Administrador
 */
public class ParamCallable {
      int index; 
      Object value; 
      int sqlType;  
      int type;
      public static int IN=0;
      public static int OUT=1;
    /** Creates a new instance of ParamCallable */
    public ParamCallable(int index, Object value, int sqlType, int type) {
        this( index,  value,  sqlType,  type,false);   
    }

  public ParamCallable(int index, Object value, int sqlType, int type,boolean minus) {
    this.index = index;
    this.sqlType = sqlType;
    this.type = type;
    try {
        if(!minus){
            this.value = Utiles.noNull(((String)value).toUpperCase());
        }else{
            this.value = Utiles.noNull((String)value);
        }
    } catch (Exception e) {
        this.value =Utiles.noNull(value);
    }

  }

}
